package com.neuedu.his.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.neuedu.his.po.Medicaldisease;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface MedicaldiseaseMapper extends BaseMapper<Medicaldisease> {

    @Delete("DELETE FROM MedicalDisease WHERE MedicalID = #{medicalId}")
    void deleteByMedicalId(@Param("medicalId") Integer medicalId);

    @Select("SELECT * FROM MedicalDisease WHERE MedicalID = #{medicalId}")
    List<Medicaldisease> selectByMedicalId(@Param("medicalId") Integer medicalId);
}